package com.cmc.cloud.cmclink.doc.api.document.emums;

import lombok.Getter;

/**
 * @author 陈正
 * @date 2025/7/22
 */
public enum TransmodeEnum {
    /**
     * 班轮
     */
    LINER("LINER", "班轮", ""),
    /**
     * 卡车
     */
    TRUCK("TRUCK", "卡车", "2"),
    /**
     * 火车
     */
    TRAIN("TRAIN", "火车", "0"),
    /**
     * 驳船
     */
    BARGE("BARGE", "驳船", "1");

    @Getter
    private String value;

    @Getter
    private String label;

    @Getter
    private String bargeType;

    TransmodeEnum(String value, String label, String bargeType) {
        this.value = value;
        this.label = label;
        this.bargeType = bargeType;
    }

    public static String getBargeTypeByValue(String value) {
        return TransmodeEnum.valueOf(value).getBargeType();
    }
}
